<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
        <link rel="stylesheet" href="./css_js/swiper-bundle.min.css" />
        <script src="./css_js/swiper-bundle.min.js"></script>
        <!-- <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
		<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script> -->
        <title>Document</title>
        <style>
            .swiper {
                width: 650px;
                height: 300px;
                background-color: grey;
            }
            .swiper-slide img{
                width: 100%;
                height: 100%;
            }
        </style>
    </head>
    <body>
        <!-- 多个滑块，注意保留原swiper类名，可以增加样式名或者id用作下面JS创建实例对象来控制 -->
        <div class="swiper" id="swiper1">
            <div class="swiper-wrapper">
                <div class="swiper-slide"><img src="./img/bn1.jpg" alt=""></div>
                <div class="swiper-slide"><img src="./img/bn2.webp" alt=""></div>
                <div class="swiper-slide"><img src="./img/bn3.webp" alt=""></div>
                <div class="swiper-slide"><img src="./img/bn4.webp" alt=""></div>
                <div class="swiper-slide"><img src="./img/bn5.webp" alt=""></div>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>
        </div>
        <div class="swiper" id="swiper2">
            <div class="swiper-wrapper">
                <div class="swiper-slide"><img src="./img/bn5.webp" alt=""></div>
                <div class="swiper-slide"><img src="./img/bn4.webp" alt=""></div>
                <div class="swiper-slide"><img src="./img/bn3.webp" alt=""></div>
                <div class="swiper-slide"><img src="./img/bn2.webp" alt=""></div>
                <div class="swiper-slide"><img src="./img/bn1.jpg" alt=""></div>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>
        </div>
    </body>
    <script>
        var Swiper1 = new Swiper("#swiper1", {
            // direction: "vertical", // 垂直切换选项
            autoplay: true,
            loop: true, // 循环模式选项
            // 如果需要分页器
            pagination: {
                el: ".swiper-pagination",
            },
        });
        var Swiper2 = new Swiper("#swiper2", {
            // direction: "vertical", // 垂直切换选项
            autoplay: true,
            loop: true, // 循环模式选项
            // 如果需要分页器
            pagination: {
                el: ".swiper-pagination",
            },
        });

    </script>
</html>
